import 'package:baselib/base/base_widget.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_app/util/colours.dart';
import 'package:get/get.dart';

import 'home_control.dart';

class HomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    final HomeControl c = Get.put(HomeControl());
    return switchStatusBar2DarkAppbar(
        title: "测试页",
        child:Container(
          child:Center(
            child: RaisedButton(
              child: Text("立即登录",
                  style: new TextStyle(
                      color: Colors.white, fontSize: 18)),
              shape: RoundedRectangleBorder(
                  borderRadius: BorderRadius.all(
                      Radius.circular(4))),
              color: ColourRes.app_blue,
              onPressed: () {
                c.getLogin();
              },
            ),
          ),
        )
    );
  }
}

